package learn.contorlller;

import learn.exception.CustomException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @Author yxc
 * @Date 2022/1/8
 */
@Controller
public class ErrorContorller {

    @GetMapping("/test/error")
    public String testException() {
        if (true) {
            throw new CustomException();
        }
        return "";
    }
}
